Builder

class Builder(context: Context = ApplicationHolder.applicationContext, locationManager: LocationManager? = context.getSystemService( Context.LOCATION_SERVICE, ) as? android.location.LocationManager, createLocationProvider: (BaseLocationManager.Settings) -> LocationProvider) : BaseLocationManager.Builder

Builder for creating a DefaultLocationManager

Parameters

context

the Context in which to manage the location

locationManager

the android.location.LocationManager to manage the location

createLocationProvider

Constructors

Link copied to clipboard
constructor(context: Context = ApplicationHolder.applicationContext, locationManager: LocationManager? = context.getSystemService( Context.LOCATION_SERVICE, ) as? android.location.LocationManager, googleLocationProviderSettings: GoogleLocationProvider.Settings)

Constructor that uses a GoogleLocationProvider

constructor(context: Context = ApplicationHolder.applicationContext, locationManager: LocationManager? = context.getSystemService( Context.LOCATION_SERVICE, ) as? android.location.LocationManager, createLocationProvider: (BaseLocationManager.Settings) -> LocationProvider)

Functions

Link copied to clipboard
open override fun create(settings: BaseLocationManager.Settings, coroutineScope: CoroutineScope): BaseLocationManager